package com.cuiyongzhi.wechat.quartz;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.log4j.Logger;

import com.cuiyongzhi.wechat.common.WeChatTask;

public class QuartzJob{
	private static Logger logger = Logger.getLogger(QuartzJob.class);
	/**
	 * @Description: 任务执行获取token
	 * @param    
	 * @author dapengniao
	 * @date 2016年3月10日 下午4:34:26
	 */
	public void workForToken() {
		try {
			logger.info(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date())+">>>>>> 开始获取access_token......");
			WeChatTask timer = new WeChatTask();
			timer.getToken_getTicket();
		} catch (Exception e) {
			logger.error(e, e);
		}
	}
}
